gl: Refactor texture uploading
authorBenjamin Otte <otte@redhat.com>
Tue, 12 Oct 2021 22:07:08 +0000 (00:07 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 13 Oct 2021 12:33:44 +0000 (14:33 +0200)
commitddc4a40c3302b5a78c9eeaac4585bd7d2ae03127
tree224785745e8bc6a30c02ffc946085e3308242c07
parent52e88ed4c882f4979dbf812607ddd0e2b0603363
gl: Refactor texture uploading

Don't pass texture + rect, but instead have
  gdk_memory_texture_new_subtexture()
and use it to generate subtextures and pass them.

This has the advantage of downloading the a too large texture only once
instead of N times.
gdk/gdkmemorytexture.c
gdk/gdkmemorytextureprivate.h
gsk/gl/gskglcommandqueue.c
gsk/gl/gskglcommandqueueprivate.h
gsk/gl/gskgldriver.c